package blog.entity;

import lombok.Data;

import java.util.Date;

/**
 * 文章评论
 */
@Data
public class Comment {
    private Integer commentId;

    private Integer commentPid;

    //评论人名称
    private String commentPname;

    //被评论的文章id
    private Integer commentArticleId;

    private String commentAuthorName;

    //评论人邮箱
    private String commentAuthorEmail;

    //评论人网址
    private String commentAuthorUrl;

    //类似 指向一个头象地址
    private String commentAuthorAvatar;

    //评论内容
    private String commentContent;

    private String commentAgent;

    //评论人ip
    private String commentIp;

    //评论时间
    private Date commentCreateTime;

    //角色(管理员1，访客0)
    private Integer commentRole;

    //非数据库字段,表示评论的文章是哪个
    private Article article;

}